import { getToken, setToken, removeToken } from '@/utils/auth'
import {encryptAES} from "@/utils/AES";

const useUserStore = defineStore(
  'user',
  {
    state: () => ({
      token: getToken(),
      name: '',
      avatar: '',
      roles: [],
      permissions: []
    }),
    actions: {
      // 登录
      login(userInfo) {

      },
    }
  })

export default useUserStore
